package com.circle.rest.core.aop;

import com.circle.rest.core.common.enums.BusinessType;
import com.circle.rest.core.common.enums.OperatorType;

import java.lang.annotation.*;

/**
 * @program: 200221000010675
 * @description: Controller日志记录
 * @author: 赵航
 * @create: 2019-03-07 11:13
 **/
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {
    /**
     * 模块
     */
    String title() default "";

    /**
     * 功能
     */
    BusinessType businessType() default BusinessType.OTHER;

    /**
     * 操作人类别
     */
    OperatorType operatorType() default OperatorType.OTHER;

    /**
     * 是否保存请求的参数
     */
    boolean isSaveRequestData() default true;

}
